#pragma once
#include "Common.h"
#include "Enums.h"
#include "IPipelineBindable.h"
#include "IDisposable.h"
#include "Resource.h"
#include <gl\glew.h>

class EXPORT IndexBuffer : public IPipelineBindable , public Resource
{
	GLuint buffer;
public:
	IndexBuffer(void);
	~IndexBuffer(void);

	void Bind();
	void Unbind();
	void Dispose();

	void BufferData(unsigned int lenght,void * data,Usage usage);
};

